package com.neusoft.weixin.service.feedback;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neusoft.common.util.UUIDGenerator;
import com.neusoft.weixin.repository.feedback.FeedbackDao;

@Service(value = "feedbackService")
public class FeedbackService {
	
	@Autowired
	private FeedbackDao feedbackDao;

	
	@Transactional(rollbackFor=Exception.class)
	public void insertFeedback(Map data) throws Exception{
		String id = UUIDGenerator.getUUID();
		data.put("ID", id);
		feedbackDao.insertFeedback(data);
	}
	

}
